package com.by.lazy;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/9 14:37
 * @注释
 */
public class Application {
    public static void main(String[] args) {
        // 多线程测试
        Runnable task = () -> {
            Singleton instance = Singleton.getInstance();
            System.out.println("Instance HashCode: " + instance.hashCode());
        };

        Thread t1 = new Thread(task);
        Thread t2 = new Thread(task);

        t1.start();
        t2.start();
    }
}